package org.netEase.dao.impl;

import org.netEase.dao.replyDao;
import org.netEase.entity.reply;
import org.netEase.util.BaseDao;

public class replyDaoImpl extends BaseDao implements replyDao {

	@Override
	public int add(reply re) {
		 String sql = "insert into reply(hid,coid,rtext)values(?,?,?)";	
			return super.executeUpdate(sql,re.getHid(),re.getCoid(),re.getRtext());
	}
	/*public static void main (String [] args) {
		reply er= new reply();
		er.setHid(Integer.parseInt("1"));
		er.setCoid(Integer.parseInt("2"));
		er.setRtext("asdfsadfsdf");
		replyDao reDao=new replyDaoImpl();
		int re=reDao.add(er);
		System.out.println(re);
	}*/
}
